import { axios } from '../utils/http'

/**
 * @description 获取搜索建议
 * @param { String } keywords - 关键词
 * @param { Number } timestamp - 防止接口缓存
 */
const searchSuggest = keywords => {
  const params = {
    keywords: keywords,
  }
  return axios.get('/search/suggest', { params })
}

export { searchSuggest }
